import Request from '../utils/http';

// 获取菜单列表
export function getMenuList() {
    return Request.get('/menu/list');
}

// 新增菜单
export function addMenu(data) {
    return Request.post('/menu/add', data);
}

// 更新菜单
export function updateMenu(data) {
    return Request.post('/menu/update', data);
}

// 删除菜单
export function deleteMenu(id) {
    return Request.delete(`/menu/delete/${id}`);
}
